import { ApiProperty } from '@nestjs/swagger';

export class CheckinPeriodStatisticsDto {
  @ApiProperty({ description: '打卡次数' })
  checkinCount: number;

  @ApiProperty({ description: '打卡率', example: '75%' })
  checkinRate: string;
}

export class StudentCheckinStatisticsDto {
  @ApiProperty({ description: '学生ID' })
  studentId: number;

  @ApiProperty({ description: '学员ID编号', example: 'STU202500001' })
  studentCode: string;

  @ApiProperty({ description: '学生姓名' })
  userName: string;

  @ApiProperty({ description: '总体打卡统计' })
  total: CheckinPeriodStatisticsDto;

  @ApiProperty({ description: '当季度打卡统计' })
  quarter: CheckinPeriodStatisticsDto;

  @ApiProperty({ description: '当月打卡统计' })
  month: CheckinPeriodStatisticsDto;

  @ApiProperty({ description: '本周打卡统计' })
  week: CheckinPeriodStatisticsDto;
} 